package com.zretc.entity;

import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class Order {
    //订单id
    private String orderId;
    //下单时间
    private String orderTime;
    //订单是否被退票
    private Integer isDelete;
    //关联影院对象
    private Cinema cinema;
    //关联影片对象
    private Movie movie;
    //关联播放厅对象
    private BroadcastHall broadcastHall;
    //关联用户对象
    private Account account;
    //关联订单详情
    private List<OrderDetail> orderDetails;
    public Order() {
    }

    public Order(String orderId, String orderTime, Integer isDelete, Cinema cinema, Movie movie, BroadcastHall broadcastHall, Account account, List<OrderDetail> orderDetails) {
        this.orderId = orderId;
        this.orderTime = orderTime;
        this.isDelete = isDelete;
        this.cinema = cinema;
        this.movie = movie;
        this.broadcastHall = broadcastHall;
        this.account = account;
        this.orderDetails = orderDetails;
    }
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Cinema getCinema() {
        return cinema;
    }

    public void setCinema(Cinema cinema) {
        this.cinema = cinema;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public BroadcastHall getBroadcastHall() {
        return broadcastHall;
    }

    public void setBroadcastHall(BroadcastHall broadcastHall) {
        this.broadcastHall = broadcastHall;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", orderTime='" + orderTime + '\'' +
                ", isDelete=" + isDelete +
                ", cinema=" + cinema +
                ", movie=" + movie +
                ", broadcastHall=" + broadcastHall +
                ", account=" + account +
                ", orderDetails=" + orderDetails +
                '}';
    }
}
